package ua.kpi_java_training.tyshchenko.module2.test;

import static junit.framework.Assert.*;
import org.junit.Before;
import org.junit.Test;
import ua.kpi_java_training.tyshchenko.module2.*;

/**
 * @author Vlad Tyshchenko
 * @version 1.0 19 June 2013
 */
public class HurdleTest {
    AbstractInputAllData allData;
    Hurdle hurdle;
    Position position;

    @Before
    public void setUp() {
        allData = new StabInputAllData();
        hurdle = new Hurdle(allData.getCoordinateHurdle());
        position = new Position(new StabRandom(), new Habitat(allData));
    }

    @Test
    public void testCheckHurdle() {
        assertTrue("check hurdle ", hurdle.checkHurdle(position));
    }
}
